<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>NextElement</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">NextElement()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>NextElement</b></font>(List())    </blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Moves from the current element to the next element in the list, or onto the first 
element if you have previously called <a href="resetlist.html">ResetList()</a> 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>List()</i></td>
<td width="90%"> 
 
The name of your list variable, created with the <a href="../reference/newlist.html">NewList</a> function. 
You must include the brackets after the list name. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns the address of the data in the next list element if successful and zero 
if there if there is no next element. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">NewList</font></b> <font color="#006666">Scores</font>.w()

  <b><font color="#006666">For</font></b> i=1 <b><font color="#006666">To</font></b> 10
<font color="#006666">    AddElement</font>(<font color="#006666">Scores</font>())
<font color="#006666">    Scores</font>() = 100 - i
  <b><font color="#006666">Next</font></b>

<font color="#006666">  ResetList</font>(<font color="#006666">Scores</font>())
  <b><font color="#006666">While</font></b> <font color="#006666">NextElement</font>(<font color="#006666">Scores</font>())
    <font color="#006666">; This is OK since the first call to NextElement() will move the current element to the first item in the list</font>
<font color="#006666">    MessageRequester</font>("Score",<font color="#006666"> Str</font>(<font color="#006666">Scores</font>()), <font color="#924B72">#PB_MessageRequester_OK</font>)
  <b><font color="#006666">Wend</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="resetlist.html">ResetList()</a>, <a href="previouselement.html">PreviousElement()</a>, 
<a href="firstelement.html">FirstElement()</a>, <a href="lastelement.html">LastElement()</a>, 
<a href="selectelement.html">SelectElement()</a>, <a href="listindex.html">ListIndex()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=moveelement.html>MoveElement()</a> - <a href=index.html>List Index</a> - <a href=poplistposition.html>PopListPosition()</a> -&gt;



</body></html>